package org.swqsbssddqs.shortlink.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.swqsbssddqs.shortlink.admin.dao.entity.GroupDO;
import org.swqsbssddqs.shortlink.admin.dto.req.GroupSortReqDTO;
import org.swqsbssddqs.shortlink.admin.dto.req.GroupUpdateReqDTO;
import org.swqsbssddqs.shortlink.admin.dto.resp.GroupListRespDTO;

import java.util.List;

public interface GroupService extends IService<GroupDO> {
    String create(String name);
    String create(String username, String name);
    List<GroupListRespDTO> listGroup();

    void updateGroup(GroupUpdateReqDTO groupUpdateReqDTO);

    Boolean deleteGroup(String gid);

    void sortGroup(List<GroupSortReqDTO> groupSortReqDTOList);
}
